package com.hsoft.zhxy.app.common.model.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.hsoft.zhxy.app.xtgl_02_01.model.query.GnzyQuery;
import com.hsoft.zhxy.common.validated.ValidatedGroup;
import lombok.Data;

 /**
 * All rights Reserved, Designed By 哈尔滨工业大学软件工程股份有限公司
 * 
 * @Title: 功能资源 Entity实体类
 * @Package 
 * @Description: 
 * @author: system
 * @date: 2020-10-23
 */
@Data
@TableName("JCQX_GNZY")
public class JcqxGnzy implements Serializable {

    private static final long serialVersionUID = 1L;

    // 功能资源ID
    @TableId(value="gnzyid",type = IdType.ASSIGN_UUID)
    @NotBlank(message = "功能资源ID 不能为空", groups = {GnzyQuery.UpdateTb.class, ValidatedGroup.Update.class, ValidatedGroup.Del.class})
    private String gnzyid;
    
    // 功能资源名称
    @NotBlank(message = "功能资源名称 不能为空", groups = {ValidatedGroup.Add.class, ValidatedGroup.Update.class})
    private String gnzymc;
    
    // 资源名称后缀
    private String zymchz;
    
    // 请求路径
    private String qqlj;
    
    // 父菜单ID
    private String fcdid;
    
    // 图标
    private String tb;
    
    // 排序号
    private Integer pxh;
    
    // 是否微页面
    @NotNull(message = "是否微页面 不能为空", groups = {ValidatedGroup.Add.class, ValidatedGroup.Update.class})
    private Integer sfwym;
    
    // 待办类型标识
    private String dblxbs;
    
    // 待办所属小应用标识
    private String dbssxyybs;

    //是否判断权限
    private Integer sfpdqx;
    
    // 创建人
    private String cjr;
    
    // 创建时间
    private LocalDateTime cjsj;
    
    // 变更人
    private String bgr;
    
    // 变更时间
    private LocalDateTime bgsj;

     //子资源
     @TableField(exist = false)
     private List<JcqxGnzy> children;
}